import createAxios from '/@/utils/axios'
export const controllerUrl = '/admin/place_order.PlaceOrder/'



export function subOrderApi(user_id: number, type: string) {
    return createAxios({
        url: controllerUrl + 'subOrder',
        method: 'get',
        params: {
            user_id: user_id,
            type: type
        },
    },{
        showSuccessMessage: true,
    })
}


export function add() {
    return createAxios({
        url: controllerUrl + 'add',
        method: 'get',
    })
}

export function getRemarks(user_id: number, place_order_type_id: string) {
    return createAxios({
        url: controllerUrl + 'getRemarks',
        method: 'get',
        params: {
            user_id: user_id,
            place_order_type_id: place_order_type_id
        },
    },{
        showSuccessMessage: false,
    })
}